package cn.lili.modules.system.serviceimpl;

import cn.lili.modules.system.entity.dos.RegionQdd;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.lili.modules.system.entity.dos.RegionYbj;
import cn.lili.modules.system.service.RegionYbjService;
import cn.lili.modules.system.mapper.RegionYbjMapper;
import org.springframework.stereotype.Service;

/**
 * @author asus
 * @description 针对表【li_region_ybj】的数据库操作Service实现
 * @createDate 2023-11-06 09:38:02
 */
@Service
public class RegionYbjServiceImpl extends ServiceImpl<RegionYbjMapper, RegionYbj>
        implements RegionYbjService {

    @Override
    public RegionYbj getRegionYbj(String code) {
        LambdaQueryWrapper<RegionYbj> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(RegionYbj::getId, code);
        lambdaQueryWrapper.last("limit 1");
        return this.getOne(lambdaQueryWrapper);
    }
}




